package com.mahjong.server.component.logic.handler;

import com.mahjong.server.common.Common;
import com.mahjong.server.mina.protocol.DataBuf;
import com.mahjong.server.mina.protocol.MessageProtocol;

/**
 * 
 * @author yougang
 * @date 2013-3-5 上午10:59:26
 * @Description 麻将响应
 */
public class ChiPaiResp extends MessageProtocol {

  private static final byte TAG=Common.Resp;

  private static final short PROTOCOL_NUM=0x0110;

  private String pai;

  public ChiPaiResp() {
    setTag(TAG);
    setProtocolNum(PROTOCOL_NUM);
  }

  public ChiPaiResp(String pai) {
    this();
    this.pai=pai;
  }

  @Override
  public void respEncode(DataBuf buf) {

      buf.putString(pai);
      System.out.println("吃牌数据："+pai);
  }
}
